package com.molichuxing.services.infrastructure.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.StockStoreBean;

/**
 * <p>
 * 门店仓库表 Mapper 接口
 * </p>
 *
 * @author liyg
 * @since 2019-08-20
 */
public interface StockStoreMapper extends RootMapper<StockStoreBean> {

	/**
	 *  获取门店仓库信息
	 * 
	 * @param stockId
	 * @return
	 */
	StockStoreBean getByStockId(Integer stockId);
	
	/**
	 * 获取门店仓库信息
	 * 
	 * @param storeId
	 * @return
	 */
	StockStoreBean getByStoreId(Integer storeId);

	/**
	 *  获取门店仓库信息
	 *  
	 * @param stockIds
	 * @return
	 */
	List<StockStoreBean> getByStockIds(@Param("stockIds")List<Integer> stockIds);

	/**
	 * 获取仓库ids
	 * @param storeIds
	 * @return
	 */
	List<Integer> getStockIds(@Param("storeIds")List<Integer> storeIds);

	/**
	 * 获取门店仓库信息
	 * @param storeIds
	 * @return
	 */
	List<StockStoreBean> getStockStoresByStoreIds(@Param("storeIds") List<Integer> storeIds);

	/**
	 * 得到所有关系
	 * @return
	 */
	List<StockStoreBean> getAllStockStore();
}